package jannex.query;

import jannex.query.conditional.Predicate;

public class Set<E> extends Clause<E> {

    private String columnName;
    private Object value;

    public Set(String columnName, Object value) {
        this.columnName = columnName;
        this.value = value;
    }

    Set(Binding<E> binding, String columnName, Object value) {
        super(binding);
        this.columnName = columnName;
        this.value = value;
    }

    public Where<E> where(Predicate... predicates) {
        return new Where<>(binding, predicates);
    }

    public Where<E> where(E e) {
        return new Where<>(binding, e);
    }
}
